package com.birdman.s2m.service.impl;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.birdman.s2m.dao.UserMapper;
import com.birdman.s2m.pojo.User;
import com.birdman.s2m.service.UserService;

@Service("userService")  
public class UserServiceImpl implements UserService {  
    @Resource  
    private UserMapper userDao;

	public User getUserById(int userId) {
		return this.userDao.selectByPrimaryKey(userId);
	}   
  
}  